<?php
$mau_id = $_GET[mau_id];
settype($mau_id, "int");
$chitiet = $mau->Mau_ChiTiet($mau_id);
$row = mysql_fetch_assoc($chitiet);
if (isset($_POST[btnSumit])) {
    $thanhcong = $mau->Mau_Sua($mau_id, $loi);
    if ($thanhcong == true) {
        header("location:?com=mau_list");
    }
}
?>
<form action="" method="post" name="form_add_dm_tour">
    <div id="admin_navigation">
        <div style="float:left;width:90%">
            <h3>Quản lý màu : cập nhật</h3>
        </div>
        <div style="float:left;width:5%;padding-top:5px">
            <input type="submit" class="save" name="btnSumit" value=""/><br />		
            <span>Save</span>
        </div>
        <div style="float:left;width:5%;padding-top:5px">
            <input type="reset" class="cancel" name="btnCancel" value=""/><br />		
            <span>Reset</span>
        </div>
        <div class="clr"></div>
    </div>
    <div id="main_admin">

        <div id="main_left">
            <fieldset>
                <legend>Thông tin chi tiết</legend>
                <table>
                    <tr>
                        <td class="left">Tên</td>
                        <td>
                            <input type="text" name="ten" id="ten" class="tf"  value="<?php echo $row['ten'] ?>"/>
                            <span class="error"><?php echo $loi['ten']; ?></span>                 
                        </td>                        
                    </tr>                    

                    <tr>
                        <td>Hình</td>
                        <td><input type="text" name="hinh" id="hinh" class="tf" value="<?php echo $row['hinh'] ?>" />
                            <input type="button" name="btnChonFile" value="Chọn hình" onclick="BrowseServer('Images:/','hinh')"  />
                            <div id="preview">
                                <div id="thumbnails"></div>
                            </div>   
                            <span class="error"><?php echo $loi['UrlHinh']; ?></span>
                        </td>                        
                    </tr> 
                    <tr>
                        <td class="left">&nbsp;</td>
                        <td>&nbsp;

                        </td>                        
                    </tr>
                </table>

            </fieldset>
        </div>


        <div class="clr"></div>
    </div>
</form>